<?php
/**
 *  发票模型 .
 * User: myl
 */
namespace app\api\model;

use think\Model;
use think\Db;

class InvoiceModel extends Model
{
    /**
     * 按条件查询（单条数据）
     * @param $where
     * @return array|false|\PDOStatement|string|Model
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function whereGetOne($where){
        $user = Db::name('invoice_up')->where($where)->find();
        return $user;
    }
}